<div class="bjui-pageContent">
    <form action="{:U('save_shop')}" data-callback="dialogFormCall" data-toggle="validate" data-alertmsg="false" class="navtabForm">
        <input type="hidden" name="id" value="{$va.id}"/>
        <div class="form-group clearfix">
            <label class="x100">登录账号:</label>
            <input type="text" name="username" data-rule="required;mobile" value="{$va.username}"<if condition="$va.id neq null">disabled="disabled"</if>/>
            <span class="text-warning">注:必须是手机号,才能作为登录帐号</span>
        </div>
        <if condition="$va.id eq null">
        <div class="form-group clearfix">
            <label class="x100">密码:</label>
            <input type="password" name="password" data-rule="required" />
        </div>
        </if>
        <div class="form-group clearfix">
            <label class="x100 pull-left">logo：</label>
            <div class="parent_img pull-left">
              <if condition="$va.logo neq null">
                <img src="{$va.logo}" alt="LOGO" width="70" />
             <else/>
                <img src="__MK__/image/58008889b30bc.jpg" alt="LOGO" width="70" />
             </if>
              <input type="hidden" name="logo" value="{$va.logo}" />
             <span data-toggle="upload"
                        data-uploader="{:U('Index/upload')}"
                         data-file-type-exts="*.png;*.jpg"
                         data-icon="cloud-upload"
                         data-multi="true"
                         data-on-upload-success="upload_callback"
                         data-auto="true"
                         data-button-text="上传图片"
                     ></span>
            </div>
        </div>
        <div class="form-group clearfix">
            <label class="x100">公司名称（同营业执照）:</label>
            <input type="text" name="shop_name" data-rule="required"  value="{$va.shop_name}"/>
        </div>
        <div class="form-group clearfix">
            <label class="x100">简称（门店名称）:</label>
            <input type="text" name="small_name" data-rule=""  value="{$va.small_name}"/>
        </div>
        <div class="form-group clearfix">
            <label class="x100">商家分类:</label>
            <select name="class_id" data-toggle="selectpicker" >
                <option value="0">--请选择--</option>
                <volist name="class" id="co">
                    <option value="{$co.id}" <if condition="$va['class_id'] eq $co['id']">selected</if>>{$co.name}</option>
                </volist>
            </select>
        </div>
        <div class="form-group clearfix">
            <label class="x100">区域:</label>
            <select name="provinceid" id="groy-type1" data-toggle="selectpicker" data-nextselect="#groy-type2" data-refurl="{:U('Index/getarea')}?v={value}">
                <option value="0">--请选择--</option>
                <volist name="res" id="vo">
                    <option value="{$vo.id}" <if condition="$va['provinceid'] eq $vo['id']">selected</if>>{$vo.name}</option>
                </volist>
            </select>
            <select name="cityid" id="groy-type2" data-toggle="selectpicker" data-nextselect="#groy-type3" data-refurl="{:U('Index/getarea')}?v={value}">
                <if condition="$va neq null">
                <option value="{$va.cityid}">{:area_name($va['cityid'])}</option>
                <else/>
                <option value="0">--请选择--</option>
                </if>
            </select>
            <select name="areaid" id="groy-type3" data-toggle="selectpicker">
                <if condition="$va neq null">
                <option value="{$va.areaid}">{:area_name($va['areaid'])}</option>
                <else/>
                <option value="0">--请选择--</option>
                </if>
            </select>
        </div>
        <div class="form-group clearfix">
            <label class="x100">地址:</label>
            <input type="text" name="shop_address" data-rule="required" value="{$va.shop_address}"/>
        </div>
        <div class="form-group clearfix">
            <label class="x100">经纬度:</label>
            <input type="text" name="east" data-rule="required" <if condition="$va.north neq null">value="{$va.east},{$va.north}"</if>/>
            <span><a href="http://api.map.baidu.com/lbsapi/getpoint/index.html" target="_blank">获取经纬度</a></span>
        </div>
        
       <!--  <div class="form-group clearfix">
            <label class="x100 pull-left">地图:</label>
            <div class="formControls pull-left">
				<input type="hidden" name="east" id="east" class="input-text" style="width:300px;" <if condition="$va.north neq null">value="{$va.east},{$va.north}"</if>/>
				<div class="mapWrap">
					<div id="map"></div>
					<div class="mapbtn">
						<div class="showAdd">
							<ul>
								<li class="tip" style="font-size: 14px;">
									<p>请填写好省、市、区、活动地址，再按搜索，会列出最接近您的坐标位置</p>
									<p>在列表中选择相应的地址再按<span style="color:red">设定</span>按钮</p>
								</li>
							</ul>
						</div>
						<div style="text-align: center; padding-top: 10px;border-top：1px solid #ddd">
							<button type="button" class="btn btn-danger radius" id="reloadCoords">刷新</button>
							<button type="button" class="btn btn-primary radius" id="enterCoords"> 设定</button>
						</div>
					</div>
				</div>					
			</div>
        </div> -->
        
        <div class="form-group clearfix">
            <label class="x100">介绍：</label>
            <textarea name="body"
                     data-toggle="kindeditor" 
                     data-items="'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
'anchor', 'link', 'unlink', '|', 'about'"
                     style="width: 60%;"
                     >
          {$va.body}           
        </textarea>
        </div>
        <div class="form-group clearfix">
            <label class="x100">联系人:</label>
            <input type="text" name="people" data-rule="required" value="{$va.people}"/>
        </div>
        <div class="form-group clearfix">
            <label class="x100">联系电话:</label>
            <input type="text" name="phone" data-rule="required" value="{$va.phone}"/>
        </div>
        <div class="form-group clearfix">
            <label class="x100">营业执照号:</label>
            <input type="text" name="business_license" data-rule="required" value="{$va.business_license}"/>
        </div>
        <div class="form-group clearfix">
            <label class="x100 pull-left">营业执照：</label>
            <div class="parent_img pull-left">
              <if condition="$va.business_license_photo neq null">
                <img src="{$va.business_license_photo}" alt="LOGO" width="70" />
             <else/>
                <img src="__MK__/image/58008889b30bc.jpg" alt="LOGO" width="70" />
             </if>
              <input type="hidden" name="business_license_photo" value="{$va.business_license_photo}" />
             <span data-toggle="upload"
                        data-uploader="{:U('Index/upload')}"
                         data-file-type-exts="*.png;*.jpg"
                         data-icon="cloud-upload"
                         data-multi="true"
                         data-on-upload-success="upload_callback"
                         data-auto="true"
                         data-button-text="上传图片"
                     ></span>
            </div>
        </div>
        
         <div class="form-group clearfix">
            <label class="x100 pull-left">身份证：</label>
	         <div class="parent_img pull-left">
	             <if condition="$va.id_card_photo neq null">
	                <img src="{$va.id_card_photo}" alt="LOGO" width="70" />
	             <else/>
	                <img src="__MK__/image/58008889b30bc.jpg" alt="LOGO" width="70" />
	             </if>
	              <input type="hidden" name="id_card_photo" value="{$va.id_card_photo}" />
	             <span data-toggle="upload"
	                        data-uploader="{:U('Index/upload')}"
	                         data-file-type-exts="*.png;*.jpg"
	                         data-icon="cloud-upload"
	                         data-multi="true"
	                         data-on-upload-success="upload_callback"
	                         data-auto="true"
	                         data-button-text="上传图片"
	                     ></span>
	         </div>
        </div>
        <div class="form-group">
            <label class="x100">开户行:</label>
            <input type="text" name="bank" data-rule="" value="{$va.bank}"/>
        </div>
        <div class="form-group">
            <label class="x100">开户行帐号:</label>
            <input type="text" name="bank_account" data-rule="" value="{$va.bank_account}"/>
        </div>
        <div class="form-group">
            <label class="x100">开户人:</label>
            <input type="text" name="bank_people" data-rule="" value="{$va.bank_people}"/>
        </div>
    </form>
</div>
<include file="Common/footer" ftype="save" />